package com.powernode.constant;

import lombok.Getter;

/**
 * @Author 梁卓
 * @Version 1.0
 * @ClassName BusinessEnum
 * @Description 业务响应状态码枚举类
 * @Date 2024/07/20 14:26
 */
@Getter
public enum BusinessEnum {
    // 状态码 描述
    UN_AUTHORIZATION(401,"未授权"),
    SERVER_INNER_ERROR(999, "服务器内部错误"),
    ACCESS_DENY_FAIL(403, "权限不足"),
    OPERATION_FAIL(-1,"操作失败");

    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 状态码描述
     */
    private final String desc;

}
